﻿<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">

<link rel="STYLESHEET" type="text/css" id="SkinStyleSheet">
<title>WebNoteEditor</title>
<script language="javascript" type="text/javascript" src="../../script/windialog.js"></script>
<script language="javascript" type="text/javascript" src="../../script/ie2w3c.js"></script>

<script language="javascript" type="text/javascript">
window.onload=function()
{
	document.getElementById("selectEM").onchange=__selectEM_onchange;
	__selectEM_onchange();
	AutoResizeDialogWindow();
}

function __selectEM_onchange()
{
	var i;
	var d=document.getElementById("FrmEM").contentWindow.document;
	d.body.innerHTML="";
	switch (parseInt(document.getElementById("selectEM").value))
	{
		case 0:
			for (i=1;i<=102;i++)
				d.writeln("<img src='em0/"+i+".gif'>");
			break;
		case 1:
			for (i=1;i<=49;i++)
				d.writeln("<img src='em1/em"+i+".gif'>");
			break;
		case 2:
			for (i=1;i<=24;i++)
				d.writeln("<img src='em2/em ("+i+").gif'>");
			break;
		case 3:
			for (i=1;i<=42;i++)
				d.writeln("<img src='em3/face"+i+".gif'>");
			break;
		case 4:
			for (i=1;i<=26;i++)
				d.writeln("<img src='em4/em ("+i+").gif'>");
			break;
		case 5:
			for (i=1;i<=72;i++)
				d.writeln("<img src='em5/kwy"+i+".gif'>");
			break;
		case 6:
			for (i=1;i<=67;i++)
				d.writeln("<img src='em6/kwy"+i+".gif'>");
			break;
		case 7:
			for (i=1;i<=55;i++)
				d.writeln("<img src='em7/em("+i+").gif'>");
			break;

		default:
	}
	
	var elems=d.getElementsByTagName("img");
	for (i=0;i<elems.length;i++)
	{
		if (EditorWindow.$browser.isIE)
			elems[i].runtimeStyle.cssText="cursor:pointer";
		if (elems[i].width>80)
			elems[i].runtimeStyle.width="80";
		
		elems[i].onclick=function()
		{
			this.src=this.src;
			EditorWindow.pasteHTML("<img src=\""+this.src+"\">");
			if (!EditorWindow.$browser.isIE)
				window.close();
		}
	}

}

function __btnOk_onclick()
{
	window.close();
}

</script>
</head>

<body class="dialog">
<!--<script language="javascript" type="text/javascript">dialogTitle("lang_insertem");</script>-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="200%" colspan="2">
    	<iframe id="FrmEM" src="" frameborder="0" width="100%" height="200"></iframe>
    </td>
  </tr>
  <tr>
    <td width="200%" class="hr" colspan="2">
      <hr size="1" color="#B3AC9D">
    </td>
  </tr>
  <tr>
    <td width="100%" aligh="right">
    <select size="1" id="selectEM">
      <option value="7">表情(猴子)</option>
      <option value="5">小洋葱头</option>
      <option value="6">大洋葱头</option>
      <option value="0">表情(中1)</option>
      <option value="2">表情(中2)</option>
      <option value="4">表情(大)</option>
      <option value="1">表情(小1)</option>
      <option value="3">表情(小2)</option>
    </select>
    </td> 
    <td width="100%" class="hr" aligh="right" align="right">
    	<script language="javascript" type="text/javascript">
        	PrintButtons3();
    	</script>
    </td> 
  </tr>
</table>

</body>

</html>